jQuery(function(){
	jQuery('.picscroll').hover(function(){
		jQuery(this).find('.LeftButton,.RightButton').css('visibility','visible');
	},function(){
		jQuery(this).find('.LeftButton,.RightButton').css('visibility','hidden');
	})
	
	jQuery('#MarqueeDiv1 img').hover(function(){
		ef43Marquee.Stop();						 
	},function(){
		ef43Marquee.Start();	
	})
	
	jQuery('#MarqueeDiv2 img').hover(function(){
		ef43Marquee2.Stop();						 
	},function(){
		ef43Marquee2.Start();	
	})
	
	jQuery('#MarqueeDiv3 img').hover(function(){
		ef43Marquee3.Stop();						 
	},function(){
		ef43Marquee3.Start();	
	})
	
	if(jQuery('#MarqueeDiv4').length > 0){
		jQuery('#MarqueeDiv4 img').hover(function(){
			ef43Marquee4.Stop();						 
		},function(){
			ef43Marquee4.Start();	
		})	
	}
	
	if(jQuery('#MarqueeDiv5').length > 0){
		jQuery('#MarqueeDiv5 img').hover(function(){
			ef43Marquee5.Stop();						 
		},function(){
			ef43Marquee5.Start();	
		})
	}
	
	if(jQuery('#MarqueeDiv6').length > 0){
		jQuery('#MarqueeDiv6 img').hover(function(){
			ef43Marquee6.Stop();						 
		},function(){
			ef43Marquee6.Start();	
		})
	}
})

var ef43Marquee=new Marquee43("MarqueeDiv1");	
ef43Marquee.Direction="left";
ef43Marquee.Step=1;
ef43Marquee.Timer=30;
ef43Marquee.ScrollStep=-1;		
ef43Marquee.Start();
ef43Marquee.BakStep=ef43Marquee.Step;
getId("LeftButton1").onmouseover=function(){ef43Marquee.Direction=2; ef43Marquee.Step=ef43Marquee.BakStep+4};
getId("LeftButton1").onmouseout=getId("LeftButton1").onmouseup=function(){ef43Marquee.Step=ef43Marquee.BakStep};
//getId("LeftButton1").onmousedown=getId("RightButton1").onmousedown=function(){ef43Marquee.Step=ef43Marquee.BakStep+10};
getId("RightButton1").onmouseover=function(){ef43Marquee.Direction=3; ef43Marquee.Step=ef43Marquee.BakStep+4};
getId("RightButton1").onmouseout=getId("RightButton1").onmouseup=function(){ef43Marquee.Step=ef43Marquee.BakStep};


if (IsObjExt('MarqueeDiv2'))
{
var ef43Marquee2=new Marquee43("MarqueeDiv2");	
ef43Marquee2.Direction="left";
ef43Marquee2.Step=1;
ef43Marquee2.Timer=30;
ef43Marquee2.ScrollStep=-1;		
ef43Marquee2.Start();
ef43Marquee2.BakStep=ef43Marquee2.Step;
getId("LeftButton2").onmouseover=function(){ef43Marquee2.Direction=2; ef43Marquee2.Step=ef43Marquee2.BakStep+4};
getId("LeftButton2").onmouseout=getId("LeftButton2").onmouseup=function(){ef43Marquee2.Step=ef43Marquee2.BakStep};
//getId("LeftButton2").onmousedown=getId("RightButton2").onmousedown=function(){ef43Marquee2.Step=ef43Marquee2.BakStep+10};
getId("RightButton2").onmouseover=function(){ef43Marquee2.Direction=3; ef43Marquee2.Step=ef43Marquee2.BakStep+4};
getId("RightButton2").onmouseout=getId("RightButton2").onmouseup=function(){ef43Marquee2.Step=ef43Marquee2.BakStep};
}


if (IsObjExt('MarqueeDiv3'))
{
var ef43Marquee3=new Marquee43("MarqueeDiv3");
ef43Marquee3.Direction="left";
ef43Marquee3.Step=1;
ef43Marquee3.Timer=30;
ef43Marquee3.ScrollStep=-1;				
ef43Marquee3.Start();
ef43Marquee3.BakStep=ef43Marquee3.Step;
getId("LeftButton3").onmouseover=function(){ef43Marquee3.Direction=2; ef43Marquee3.Step=ef43Marquee3.BakStep+4};
getId("LeftButton3").onmouseout=getId("LeftButton3").onmouseup=function(){ef43Marquee3.Step=ef43Marquee3.BakStep};
//getId("LeftButton3").onmousedown=getId("RightButton3").onmousedown=function(){ef43Marquee3.Step=ef43Marquee3.BakStep+10};
getId("RightButton3").onmouseover=function(){ef43Marquee3.Direction=3; ef43Marquee3.Step=ef43Marquee3.BakStep+4};
getId("RightButton3").onmouseout=getId("RightButton3").onmouseup=function(){ef43Marquee3.Step=ef43Marquee3.BakStep};
}


if (IsObjExt('MarqueeDiv4'))
{
	var ef43Marquee4=new Marquee43("MarqueeDiv4");
	ef43Marquee4.Direction="left";
	ef43Marquee4.Step=1;
	ef43Marquee4.Timer=30;
	ef43Marquee4.ScrollStep=-1;				
	ef43Marquee4.Start();
	ef43Marquee4.BakStep=ef43Marquee4.Step;
	getId("LeftButton4").onmouseover=function(){ef43Marquee4.Direction=2; ef43Marquee4.Step=ef43Marquee4.BakStep+4};
	getId("LeftButton4").onmouseout=getId("LeftButton4").onmouseup=function(){ef43Marquee4.Step=ef43Marquee4.BakStep};
	//getId("LeftButton4").onmousedown=getId("RightButton4").onmousedown=function(){ef43Marquee4.Step=ef43Marquee4.BakStep+10};
	getId("RightButton4").onmouseover=function(){ef43Marquee4.Direction=3; ef43Marquee4.Step=ef43Marquee4.BakStep+4};
	getId("RightButton4").onmouseout=getId("RightButton4").onmouseup=function(){ef43Marquee4.Step=ef43Marquee4.BakStep};
}
if (IsObjExt('MarqueeDiv5'))
{
	var ef43Marquee5=new Marquee43("MarqueeDiv5");
	ef43Marquee5.Direction="left";
	ef43Marquee5.Step=1;
	ef43Marquee5.Timer=30;
	ef43Marquee5.ScrollStep=-1;				
	ef43Marquee5.Start();
	ef43Marquee5.BakStep=ef43Marquee5.Step;
	getId("LeftButton5").onmouseover=function(){ef43Marquee5.Direction=2; ef43Marquee5.Step=ef43Marquee5.BakStep+4};
	getId("LeftButton5").onmouseout=getId("LeftButton5").onmouseup=function(){ef43Marquee5.Step=ef43Marquee5.BakStep};
	//getId("LeftButton5").onmousedown=getId("RightButton5").onmousedown=function(){ef43Marquee5.Step=ef43Marquee5.BakStep+10};
	getId("RightButton5").onmouseover=function(){ef43Marquee5.Direction=3; ef43Marquee5.Step=ef43Marquee5.BakStep+4};
	getId("RightButton5").onmouseout=getId("RightButton5").onmouseup=function(){ef43Marquee5.Step=ef43Marquee5.BakStep};
}
if (IsObjExt('MarqueeDiv6'))
{
	var ef43Marquee6=new Marquee43("MarqueeDiv6");
	ef43Marquee6.Direction="left";
	ef43Marquee6.Step=1;
	ef43Marquee6.Timer=30;
	ef43Marquee6.ScrollStep=-1;				
	ef43Marquee6.Start();
	ef43Marquee6.BakStep=ef43Marquee6.Step;
	getId("LeftButton6").onmouseover=function(){ef43Marquee6.Direction=2; ef43Marquee6.Step=ef43Marquee6.BakStep+4};
	getId("LeftButton6").onmouseout=getId("LeftButton6").onmouseup=function(){ef43Marquee6.Step=ef43Marquee6.BakStep};
	//getId("LeftButton6").onmousedown=getId("RightButton6").onmousedown=function(){ef43Marquee6.Step=ef43Marquee6.BakStep+10};
	getId("RightButton6").onmouseover=function(){ef43Marquee6.Direction=3; ef43Marquee6.Step=ef43Marquee6.BakStep+4};
	getId("RightButton6").onmouseout=getId("RightButton6").onmouseup=function(){ef43Marquee6.Step=ef43Marquee6.BakStep};
}